package com.qf.util;

import java.io.File;
import java.util.Map;

/*
杨威
2021/9/18
9:27
*/
public class DownLoadUtil {
    public static Map<String,String> fileLists(File file,Map<String,String> map){
        File[] files = file.listFiles();
        for (File file1 : files) {
            if(file1.isFile()){
                String uuidName = file1.getName();
                String fileName = uuidName.substring(uuidName.indexOf("_")+1);
                map.put(uuidName,fileName);
            }else {
                fileLists(file1,map);
            }
        }
        return map;
    }
}
